import request from '@/common/request'

export function addaxle (data) {
  return request({
    url: '/api/axle/add',
    method: 'post',
    data
  })
}

export function removeaxle (id) {
  return request({
    url: '/api/axle/del/' + id,
    method: 'post'
  })
}

export function updateaxle (data) {
  return request({
    url: '/api/axle/update',
    method: 'post',
    data
  })
}

export function getaxle (id) {
  return request({
    url: '/api/axle/all/' + id,
    method: 'get'
  })
}

export function getaxleone (id) {
  return request({
    url: '/api/axle/one/' + id,
    method: 'get'
  })
}

// 轴承库
export function getbearingLib (data) {
  return request({
    url: '/api/bearingLib/all',
    method: 'post',
    data
  })
}

export function addbearingLib (data) {
  return request({
    url: '/api/bearingLib/add',
    method: 'post',
    data
  })
}

export function removebearingLib (id) {
  return request({
    url: '/api/bearingLib/del/' + id,
    method: 'post'
  })
}

export function updatebearingLib (data) {
  return request({
    url: '/api/bearingLib/update',
    method: 'post',
    data
  })
}
